package com.yc.sole.framework.utils;

import java.math.BigDecimal;
import java.text.DecimalFormat;

/**
 * @author yizuomin
 * @date 2023/2/8 10:54
 **/
public class MoneyUtil {

    private static final DecimalFormat decimalFormat = new DecimalFormat("###,###.00");


    /**
     * 金额格式化
     *
     * @param billAmount
     * @return
     */
    public static String billAmountFormat(BigDecimal billAmount) {
        if (null == billAmount) {
            return "";
        }
        return decimalFormat.format(billAmount);
    }
}
